@echo off
chcp 65001 >nul
echo Data Structure Demo Programs Runner
echo ===================================

:menu
echo.
echo Please select a demo program to run:
echo 1. Array Demo
echo 2. Stack Demo
echo 3. Queue Demo
echo 4. Hash Table Demo
echo 5. Comprehensive Demo
echo 6. Run All Demos
echo 0. Exit
echo.
set /p choice=Enter your choice (0-6): 

if "%choice%"=="1" goto array
if "%choice%"=="2" goto stack
if "%choice%"=="3" goto queue
if "%choice%"=="4" goto hashtable
if "%choice%"=="5" goto comprehensive
if "%choice%"=="6" goto all
if "%choice%"=="0" goto end
goto menu

:array
echo.
echo === Array Demo ===
array_demo.exe
pause
goto menu

:stack
echo.
echo === Stack Demo ===
stack_demo.exe
pause
goto menu

:queue
echo.
echo === Queue Demo ===
queue_demo.exe
pause
goto menu

:hashtable
echo.
echo === Hash Table Demo ===
hashtable_demo.exe
pause
goto menu

:comprehensive
echo.
echo === Comprehensive Demo ===
comprehensive_demo.exe
pause
goto menu

:all
echo.
echo === Running All Demos ===
echo.
echo 1. Array Demo
echo ==============
array_demo.exe
echo.
echo 2. Stack Demo
echo =============
stack_demo.exe
echo.
echo 3. Queue Demo
echo ==============
queue_demo.exe
echo.
echo 4. Hash Table Demo
echo ==================
hashtable_demo.exe
echo.
echo 5. Comprehensive Demo
echo ======================
comprehensive_demo.exe
echo.
echo All demos completed!
pause
goto menu

:end
echo Goodbye!